﻿package net.wangit.dev.wizard;

import net.wangit.Unit;
import net.wangit.context.ActionContext;
import net.wangit.jdbc.DB;
import net.wangit.view.Suite;
import net.wangit.view.unit.UnitFactory;

public class OneTableSuite4 implements Suite {

	private static final String UNIT_ID = "suite14";
	private static final String UNIT_ID_CASE = "case14";

	public OneTableSuite4() {
	}

	public Unit getUnit(ActionContext ac) {
		return UnitFactory.getUnit(ac, "dev", OneTableSuite4.UNIT_ID, null);
	}

	public Unit getCaseUnit(ActionContext ac) {
		return UnitFactory
				.getUnit(ac, "dev", OneTableSuite4.UNIT_ID_CASE, null);
	}

	public void create(DB db, ActionContext ac) throws Exception {
		OneTableSuiteProcessor processor = new OneTableSuiteProcessor4();
		processor.process(db, ac, OneTableSuite4.UNIT_ID);
	}
}
